<?php

namespace App\Models;

use App\Models\traits\serializeDate;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Reply extends Model
{
    use HasFactory, serializeDate;

    protected $guarded = [];

    protected $casts = [
        'attachments' => 'array'
    ];

    public function replyable()
    {
        return $this->morphTo();
    }

}
